Problem Note 54089: Reading Microsoft Excel dates using a stored process input stream and the SAS® Add-In for Microsoft Office
Beginning with the SAS Add-in 5.1 for Microsoft Office, you can use Microsoft Excel data as input for a stored process using the XML engine and input streams. For more information, see the paper "Excelling with Excel".
When the Excel data to be used as input for the stored process contains Excel dates, allowances must be made for the difference in how Excel and SAS® store these values. A SAS date is a numeric variable containing the number of days since January 1, 1960. An Excel date is the number of days since January 1, 1900. The difference in the number of days is 21,916. Therefore, the SAS stored process code must convert an Excel date to a SAS date by subtracting 21,916. For more information, see "Dating SAS and MS Excel".
As an alternative to converting the Excel date to a SAS date, you can format all of the Excel dates as text in Excel, and then use the Excel data as input for the stored process. In this case, SAS automatically converts the text date to a SAS date.
Starting in release 7.12, you no longer need to perform this conversion.
Operating System and Release Information
SAS System | SAS Add-in for Microsoft Office | Microsoft® Windows® for x64 | 5.1 | 7.12 | | 9.4 TS1M3 |
Microsoft Windows 8 Enterprise 32-bit | 5.1 | 7.12 | | 9.4 TS1M3 |
Microsoft Windows 8 Enterprise x64 | 5.1 | 7.12 | | 9.4 TS1M3 |
Microsoft Windows 8 Pro 32-bit | 5.1 | 7.12 | | 9.4 TS1M3 |
Microsoft Windows 8 Pro x64 | 5.1 | 7.12 | | 9.4 TS1M3 |
Microsoft Windows 8.1 Enterprise 32-bit | 5.1 | 7.12 | | 9.4 TS1M3 |
Microsoft Windows 8.1 Enterprise x64 | 5.1 | 7.12 | | 9.4 TS1M3 |
Microsoft Windows 8.1 Pro | 5.1 | 7.12 | | 9.4 TS1M3 |
Microsoft Windows 8.1 Pro 32-bit | 5.1 | 7.12 | | 9.4 TS1M3 |
Microsoft Windows 95/98 | 5.1 | | | |
Microsoft Windows 2000 Advanced Server | 5.1 | | | |
Microsoft Windows 2000 Datacenter Server | 5.1 | | | |
Microsoft Windows 2000 Server | 5.1 | | | |
Microsoft Windows 2000 Professional | 5.1 | | | |
Microsoft Windows NT Workstation | 5.1 | | | |
Microsoft Windows Server 2003 Datacenter Edition | 5.1 | | | |
Microsoft Windows Server 2003 Enterprise Edition | 5.1 | | | |
Microsoft Windows Server 2003 Standard Edition | 5.1 | | | |
Microsoft Windows Server 2003 for x64 | 5.1 | | | |
Microsoft Windows Server 2008 | 5.1 | 7.12 | | 9.4 TS1M3 |
Microsoft Windows Server 2008 R2 | 5.1 | 7.12 | | 9.4 TS1M3 |
Microsoft Windows Server 2008 for x64 | 5.1 | 7.12 | | 9.4 TS1M3 |
Microsoft Windows Server 2012 Datacenter | 5.1 | 7.12 | | 9.4 TS1M3 |
Microsoft Windows Server 2012 R2 Datacenter | 5.1 | 7.12 | | 9.4 TS1M3 |
Microsoft Windows Server 2012 R2 Std | 5.1 | 7.12 | | 9.4 TS1M3 |
Microsoft Windows Server 2012 Std | 5.1 | 7.12 | | 9.4 TS1M3 |
Microsoft Windows XP Professional | 5.1 | | | |
Windows 7 Enterprise 32 bit | 5.1 | 7.12 | | 9.4 TS1M3 |
Windows 7 Enterprise x64 | 5.1 | 7.12 | | 9.4 TS1M3 |
Windows 7 Home Premium 32 bit | 5.1 | 7.12 | | 9.4 TS1M3 |
Windows 7 Home Premium x64 | 5.1 | 7.12 | | 9.4 TS1M3 |
Windows 7 Professional 32 bit | 5.1 | 7.12 | | 9.4 TS1M3 |
Windows 7 Professional x64 | 5.1 | 7.12 | | 9.4 TS1M3 |
Windows 7 Ultimate 32 bit | 5.1 | 7.12 | | 9.4 TS1M3 |
Windows 7 Ultimate x64 | 5.1 | 7.12 | | 9.4 TS1M3 |
Windows Millennium Edition (Me) | 5.1 | | | |
Windows Vista | 5.1 | | | |
Windows Vista for x64 | 5.1 | | | |
*
For software releases that are not yet generally available, the Fixed
Release is the software release in which the problem is planned to be
fixed.
Type: | Problem Note |
Priority: | high |
Date Modified: | 2014-09-11 15:10:17 |
Date Created: | 2014-09-10 10:19:46 |